package org.zhadoop.stream.cql.semanticanalyzer.parser.context;

import java.util.List;

import org.zhadoop.stream.cql.DriverContext;
import org.zhadoop.stream.cql.exception.CQLException;
import org.zhadoop.stream.cql.exception.SemanticAnalyzerException;
import org.zhadoop.stream.cql.hooks.SemanticAnalyzeHook;
import org.zhadoop.stream.cql.semanticanalyzer.SemanticAnalyzer;
import org.zhadoop.stream.cql.semanticanalyzer.parsecontextwalker.ParseContextWalker;
import org.zhadoop.stream.cql.tasks.Task;

/**
 * 类名称解析内容
 * @author zwd
 *
 */
public class ClassNameContext extends ParseContext{

	private String className;
	
	private boolean isInnerClass = false;
	
	
	public String getClassName() {
		return className;
	}


	public void setClassName(String className) {
		this.className = className;
	}


	public boolean isInnerClass() {
		return isInnerClass;
	}


	public void setInnerClass(boolean isInnerClass) {
		this.isInnerClass = isInnerClass;
	}


	@Override
	public String toString() {
		  if (isInnerClass){
	            return className;
	        }
	        return "'" + className + "'";
	}


	@Override
	public Task createTask(DriverContext driverContext, List<SemanticAnalyzeHook> analyzeHooks) throws CQLException {
		return null;
	}


	@Override
	public SemanticAnalyzer createAnalyzer() throws SemanticAnalyzerException {
		return null;
	}


	@Override
	protected void walkChild(ParseContextWalker walker) {		
	}
}
